import React from 'react'
import { Routes, Route} from "react-router-dom";
import Header from './widget/header'
import Home from './view/index'
import About from './view/about'

//https://github.com/remix-run/react-router/blob/main/docs/getting-started/installation.md

export default class AppWidget extends React.Component<any, any> {
    render(){
        return (
            <div>
                <Header/>
                <Routes>
                    <Route path="/" element={<Home />}/>
                    <Route path="/home" element={<Home />} />
                    <Route path="/about" element={<About />} />
                </Routes>
            </div>
        )
    }
}

